import { Router } from 'vue-router'
import { createPageLoadingGuard } from './page-loading-guard'
import { createPermissionGuard } from './permission-guard'
import { createPageTitleGuard } from './page-title-guard'
import { createTabGuard } from './tab-guard'
import { createRoleGuard } from './role-guard'

export function setupRouterGuards(router: Router) {
  createPageLoadingGuard(router)
  createPermissionGuard(router)
  createRoleGuard(router)  // 添加角色守卫
  createPageTitleGuard(router)
  createTabGuard(router)
} 